package mensa.upb;

import java.util.ArrayList;

public class Day {

	// Objektvariablen
	String datum;
	String wochentag;
	ArrayList<Menue> menuList;

	// Konstruktor
	public Day() {
		this.menuList = new ArrayList<Menue>();
	}

	public void addToList(Menue menue) {
		this.menuList.add(menue);
	}

	public ArrayList<Menue> getMenuList() {
		return menuList;
	}

	public int getMenuListSize() {
		return menuList.size();
	}

	public String getWochentag() {
		return this.wochentag;
	}

	public String getDatum() {
		return this.datum;
	}

	public void setWochentag(String wochentag) {
		this.wochentag = formatInput(wochentag);
	}

	public void setDatum(String datum) {
		this.datum = formatInput(datum);
	}

	// Makes the Strings look nicer
	public String formatInput(String input) {
		String changedInput = input.replaceAll("\r", "").replaceAll("\n", "");
		return changedInput;
	}
}
